package com.jianyun.jyzs.bean;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;
import java.util.List;

/**
 * 保存工单创建的 项目选择
 */

public class WoProject extends Response {

	/**
	 * list : [{"enterpriseCode":"yuntechoa","id":"1000022","name":"建云工程","projectId":"067160c2-d565-4d6c-986b-2579dada8d33"},{"enterpriseCode":"YuntechOA","id":"2000093","name":"公司-行政管理","projectId":"1001"},{"enterpriseCode":"YuntechOA","id":"2000094","name":"公司-运维管理","projectId":"1007"},{"enterpriseCode":"YuntechOA","id":"2000095","name":"公司-销售管理","projectId":"1004"},{"enterpriseCode":"YuntechOA","id":"2000096","name":"公司-研发管理","projectId":"1009"},{"enterpriseCode":"YuntechOA","id":"2000097","name":"售前-售前方案","projectId":"3001"},{"enterpriseCode":"YuntechOA","id":"2000098","name":"销售-上门拜访","projectId":"3002"},{"enterpriseCode":"YuntechOA","id":"2000099","name":"平台-通用功能","projectId":"4001"},{"enterpriseCode":"YuntechOA","id":"2000100","name":"平台-规划升级","projectId":"4002"},{"enterpriseCode":"YuntechOA","id":"2000110","name":"产品-通用功能","projectId":"5001"},{"enterpriseCode":"YuntechOA","id":"2000112","name":"产品-合同管家","projectId":"5003"},{"enterpriseCode":"YuntechOA","id":"2000119","name":"项目-北京城建HR","projectId":"6027"},{"enterpriseCode":"YuntechOA","id":"2000125","name":"运维-公司OA","projectId":"7001"},{"enterpriseCode":"YuntechOA","id":"2000126","name":"公司-人力管理","projectId":"1002"},{"enterpriseCode":"YuntechOA","id":"2000127","name":"项目-南京大地建设","projectId":"6025"},{"enterpriseCode":"YuntechOA","id":"2000130","name":"项目-天津六建HR项目","projectId":"6010"},{"enterpriseCode":"YuntechOA","id":"2000135","name":"项目-新龙兴项目","projectId":"6063"},{"enterpriseCode":"YuntechOA","id":"2000137","name":"项目-广西政通项目","projectId":"6016"},{"enterpriseCode":"YuntechOA","id":"2000140","name":"项目-大地工程项目管理系统","projectId":"6017"},{"enterpriseCode":"YuntechOA","id":"2000142","name":"项目-天津振津集团","projectId":"6011"},{"enterpriseCode":"YuntechOA","id":"2000144","name":"项目-中铝长城建设","projectId":"6026"},{"enterpriseCode":"YuntechOA","id":"2000145","name":"项目-梅李镇建设局项目","projectId":"6050"},{"enterpriseCode":"YuntechOA","id":"2000147","name":"产品-建云网","projectId":"5006"},{"enterpriseCode":"YuntechOA","id":"2000151","name":"项目-江苏南通通州二建OA","projectId":"6038"},{"enterpriseCode":"YuntechOA","id":"2000152","name":"项目-河南一建","projectId":"6060"},{"enterpriseCode":"YuntechOA","id":"2000154","name":"产品-建云宝","projectId":"5010"},{"enterpriseCode":"YuntechOA","id":"2000156","name":"运维-路鹏达","projectId":"7006"},{"enterpriseCode":"YuntechOA","id":"2000158","name":"产品-PMone2017版","projectId":"5012"},{"enterpriseCode":"YuntechOA","id":"2000173","name":"项目-厦门地山建设","projectId":"6055"},{"enterpriseCode":"YuntechOA","id":"2000185","name":"运维-广西政通","projectId":"7005"}]
	 * message : null
	 * result : true
	 */

	private String message;
	private boolean result;
	private List<Project> list;

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public boolean isResult() {
		return result;
	}

	public void setResult(boolean result) {
		this.result = result;
	}

	public List<Project> getList() {
		return list;
	}

	public void setList(List<Project> list) {
		this.list = list;
	}

	@DatabaseTable
	public static class Project implements Serializable{
		/**
		 * enterpriseCode : yuntechoa
		 * id : 1000022
		 * name : 建云工程
		 * projectId : 067160c2-d565-4d6c-986b-2579dada8d33
		 */

		@DatabaseField
		private String enterpriseCode;
		@DatabaseField(id = true)
		private String id;
		@DatabaseField
		private String name;
		@DatabaseField
		private String projectId;

		public String getEnterpriseCode() {
			return enterpriseCode;
		}

		public void setEnterpriseCode(String enterpriseCode) {
			this.enterpriseCode = enterpriseCode;
		}

		public String getId() {
			return id;
		}

		public void setId(String id) {
			this.id = id;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getProjectId() {
			return projectId;
		}

		public void setProjectId(String projectId) {
			this.projectId = projectId;
		}
	}
}
